<?php

$obj=new mysql($config);
$id=$_GET['cid'];
$sql="select * from `cate` where `cate_type`=0 and `id`=$id";
$date=$obj->getOne($sql);



//左边栏目和当前位置

if($_GET['pid']==0){
$sql="select pid,id,name,cate_type from `cate` where `cate_type`=0 and `pid`=$id";
$col=$obj->getCondition($sql);
$link[]=$date;


}else{
$sql="select pid,id,name,cate_type from `cate` where `cate_type`=0 and `pid`=$_GET[pid]";
$col=$obj->getCondition($sql);

$sql1="select * from `cate` where `cate_type`=0";
$sj=$obj->getCondition($sql1);
$link=getlink($sj,$id);
}












require_once VIEW_PATH.'home/layout.html';
